package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备41信息对象 device_info_41
 * 
 * @author ruoyi
 * @date 2024-08-24
 */
public class DeviceInfo41 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 充放电功率 W */
    @Excel(name = "充放电功率 W")
    private Double chDischargePower;

    /** 电池SOC % */
    @Excel(name = "电池SOC %")
    private Double batterySoc;

    /** 电池SOH 无 */
    @Excel(name = "电池SOH 无")
    private Double batterySoh;

    /** 充电电量 kWh */
    @Excel(name = "充电电量 kWh")
    private Double chargeCap;

    /** 放电电量 kWh */
    @Excel(name = "放电电量 kWh")
    private Double dischargeCap;

    /** 状态（0：断连；1：连接） */
    @Excel(name = "状态", readConverterExp = "0=：断连；1：连接")
    private Integer runState;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long devId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date collectTime;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChDischargePower(Double chDischargePower) 
    {
        this.chDischargePower = chDischargePower;
    }

    public Double getChDischargePower() 
    {
        return chDischargePower;
    }
    public void setBatterySoc(Double batterySoc) 
    {
        this.batterySoc = batterySoc;
    }

    public Double getBatterySoc() 
    {
        return batterySoc;
    }
    public void setBatterySoh(Double batterySoh) 
    {
        this.batterySoh = batterySoh;
    }

    public Double getBatterySoh() 
    {
        return batterySoh;
    }
    public void setChargeCap(Double chargeCap) 
    {
        this.chargeCap = chargeCap;
    }

    public Double getChargeCap() 
    {
        return chargeCap;
    }
    public void setDischargeCap(Double dischargeCap) 
    {
        this.dischargeCap = dischargeCap;
    }

    public Double getDischargeCap() 
    {
        return dischargeCap;
    }
    public void setRunState(Integer runState) 
    {
        this.runState = runState;
    }

    public Integer getRunState() 
    {
        return runState;
    }
    public void setDevId(Long devId) 
    {
        this.devId = devId;
    }

    public Long getDevId() 
    {
        return devId;
    }
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chDischargePower", getChDischargePower())
            .append("batterySoc", getBatterySoc())
            .append("batterySoh", getBatterySoh())
            .append("chargeCap", getChargeCap())
            .append("dischargeCap", getDischargeCap())
            .append("runState", getRunState())
            .append("devId", getDevId())
            .append("collectTime", getCollectTime())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
